<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AlterVassetiDelField extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('vassetis', function (Blueprint $table) {
            $table->integer('episode')->nullable()->change();
            $table->integer('subvcat_id')->nullable()->change();
            $table->integer('publish_status')->nullable()->default(0)->change();
            $table->integer('moderate_status')->nullable()->default(0)->change();
            $table->integer('online_status')->nullable()->default(0)->change();
            $table->dropColumn(['moderate_by', 'moderate_at', 'msg_id','sync_result','sync_content','sync_description','async_result','async_content','async_description']);
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('vassetis', function (Blueprint $table) {
            //
        });
    }
}
